package com.huoyun.order.bean;

import java.util.Date;

public class Order {
	
	/**
	 * 订单状态:待支付 
	 */
	public static final int STATUS_NO_PAY = 1;
	
	/**
	 *  订单状态:已完成支付 
	 */
	public static final int STATUS_PAYED = 2;
	
	/**
	 * 订单状态:待评论
	 */
	public static final int STATUS_NO_COMMENT = 3;
	
	/**
	 *  订单状态:完成
	 */
	public static final int STATUS_COMPLETED = 4;
	
	/**
	 *  订单状态:异常终止 
	 */
	public static final int STATUS_FAILURE = 99;
	
	/**
	 *  订单状态:删除 
	 */
	public static final int STATUS_DELETE = 999;

	/**
	 * 唯一标示
	 */
	private long id;
	
	/**
	 * 订单id
	 */
	private String orderId;
	
	/**
	 * 车主id
	 */
	private long carOwnerId;
	
	/**
	 * 车辆id
	 */
	private long carId;
	
	/**
	 * 车牌号
	 */
	private String carNumber;
	
	/**
	 * 货主id
	 */
	private long cargosOwnerId;
	
	/**
	 * 货物id
	 */
	private long cargosId;
	
	/**
	 * 货物标题
	 */
	private String cargisTitle;
	
	/**
	 * 车辆所载货物重量
	 */
	private String weight;
	
	/**
	 * 车辆所载货物体积
	 */
	private String volumn;
	
	/**
	 * 订单价格
	 */
	private String price;
	
	/**
	 * 订单折扣
	 */
	private String discount;
	
	
	private long addressId;
	
	/**
	 * 支付方式
	 */
	private String payType;
	
	/**
	 * 是否支付
	 */
	private boolean isPay;
	
	/**
	 * 订单生成时间
	 */
	private Date addTime;
	
	/**
	 * 订单状态(1.未缴纳保证金  2.未装货 3.货主未结清运费  4.等待卸货 5.完成 99.异常终止 )
	 */
	private int status;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getCarOwnerId() {
		return carOwnerId;
	}
	public void setCarOwnerId(long carOwnerId) {
		this.carOwnerId = carOwnerId;
	}
	public long getCarId() {
		return carId;
	}
	public void setCarId(long carId) {
		this.carId = carId;
	}
	public String getCarNumber() {
		return carNumber;
	}
	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}
	public long getCargosOwnerId() {
		return cargosOwnerId;
	}
	public void setCargosOwnerId(long cargosOwnerId) {
		this.cargosOwnerId = cargosOwnerId;
	}
	public long getCargosId() {
		return cargosId;
	}
	public void setCargosId(long cargosId) {
		this.cargosId = cargosId;
	}
	public String getCargisTitle() {
		return cargisTitle;
	}
	public void setCargisTitle(String cargisTitle) {
		this.cargisTitle = cargisTitle;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getVolumn() {
		return volumn;
	}
	public void setVolumn(String volumn) {
		this.volumn = volumn;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getDiscount() {
		return discount;
	}
	public void setDiscount(String discount) {
		this.discount = discount;
	}
	public long getAddressId() {
		return addressId;
	}
	public void setAddressId(long addressId) {
		this.addressId = addressId;
	}
	public String getPayType() {
		return payType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public boolean isPay() {
		return isPay;
	}
	public void setPay(boolean isPay) {
		this.isPay = isPay;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	
}
